package yang.itcode.mapper;

import cn.hutool.json.JSONObject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import yang.itcode.model.pojo.PurchaseOrder;

import java.util.List;

@Mapper
public interface PurchaseOrderMapper {
    int insert(PurchaseOrder purchaseOrder);

    int update(PurchaseOrder purchaseOrder);

    int deleteById(Integer id);

    PurchaseOrder selectById(Integer id);

    List<PurchaseOrder> selectAll();

    List<PurchaseOrder> selectByCondition(JSONObject condition);

    List<JSONObject> selectPurchaseOrderView(JSONObject condition);
}

